FROM openanolis/anolisos:8.6

LABEL maintainer="OpenAnolis Cloud Native SIG"

RUN yum -y update \
    && yum -y install memcached \
    && yum clean all

ENV MEMCACHED_VERSION 1.5.22

RUN memcached -V

COPY docker-entrypoint.sh /usr/local/bin/

RUN ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh

ENTRYPOINT ["docker-entrypoint.sh"]

USER memcached

EXPOSE 11211

CMD ["memcached"]
